package com.oco;

import com.oco.configuration.springmvc.WebProperties;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;


//启用hystrix(熔断)注解
@EnableCircuitBreaker
//Feign RestFul启用注解
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
//@EnableEurekaClient
@EnableConfigurationProperties({WebProperties.class})  // 加载自定义properties文件
public class SpringBootOcoApplication {

  public static void main(String[] args) {
    SpringApplication.run(SpringBootOcoApplication.class, args);
  }
}
